import baseSprite from '../baseSprite';
import skillWh from '../skill';
export default () => {
  let spriteWh = baseSprite().map((item) => ({
    name: item.name,
    lv: 1,
    exp: {
      currExp: 0,
      maxExp: 100,
    },
    attr: {
      currAttr: {
        hp: 30 * item.attrp,
        atk: 2 * item.attrp,
        int: 3 * item.attrp,
        def: 4 * item.attrp,
        res: 1 * item.attrp,
        phy: 2 * item.attrp,
        agl: 2 * item.attrp,
      },
      maxAttr: {
        hp: 30 * item.attrp,
        atk: 4 * item.attrp,
        int: 3 * item.attrp,
        def: 4 * item.attrp,
        res: 1 * item.attrp,
        phy: 2 * item.attrp,
        agl: 2 * item.attrp,
      },
    },
    skill: item.skill.map((ite) => skillWh().filter((it) => ite == it.name)[0]),
  }));
  return spriteWh;
};
